package com.atguigu.service;

import com.atguigu.model.process.Process;
import com.atguigu.vo.process.ApprovalVo;
import com.atguigu.vo.process.ProcessFormVo;
import com.atguigu.vo.process.ProcessQueryVo;
import com.atguigu.vo.process.ProcessVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;


public interface OaProcessService extends IService<Process> {
    IPage<ProcessVo> selectPage(IPage<ProcessVo> page1, ProcessQueryVo processQueryVo);

    void deployByZip(String processDefinitionPath);

    void startUp(ProcessFormVo processFormVo);

    IPage<ProcessVo> findPending(IPage<ProcessVo> pageParam);

    Map<String, Object> show(Integer processId);

    void approve(ApprovalVo approvalVo);

    IPage<ProcessVo> findProcessed(IPage<ProcessVo> pageParam);

    IPage<ProcessVo> findStarted(IPage<ProcessVo> pageParam);
}
